<?php //pack11class

class ObjectCardImageNavigationButton extends Module {

    const NEXT="next";
    const PREVIOUS="previous";
    const BOTH="both";
    public $link="";

    public function setup() {
        if($this->param==self::NEXT) {
            $this->events=str_replace('\"', '"', "onClick=\"ObjectCardNavigation.nextPhoto();\"");
            $this->setClass("NaviNext");
            $this->setBody(LabelManager::getLabel("next_photo")." »");
        } else {
            $this->events=str_replace('\"', '"', "onClick=\"ObjectCardNavigation.previousPhoto();\"");
            $this->setClass("NaviPrevious");
            $this->setBody("« ".LabelManager::getLabel("previous_photo"));
        }
    }

}
?>
